package com.nanhai.buddhist.college.module.system.controller.admin.user.vo.user;

import com.nanhai.buddhist.college.framework.excel.core.annotations.DictFormat;
import com.nanhai.buddhist.college.framework.excel.core.convert.DictConvert;
import com.nanhai.buddhist.college.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 用户 Excel 导出 VO
 */
@Data
public class UserExcelVO {

   // @ExcelProperty("用户编号")
   // private String id;

    @ExcelProperty("用户名称")
    private String username;

    @ExcelProperty("用户昵称")
    private String nickname;


    @ExcelProperty("部门名称")
    private String deptName;

    @ExcelProperty("部门负责人")
    private String deptLeaderNickname;


    @ExcelProperty("手机号码")
    private String mobile;

    @ExcelProperty(value = "帐号状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS)
    private Integer status;

    @ExcelProperty("创建时间")
    private Date createTime;

    @ExcelProperty("用户邮箱")
    private String email;

    @ExcelProperty(value = "用户性别", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.USER_SEX)
    private Integer sex;



    @ExcelProperty("最后登录IP")
    private String loginIp;

    @ExcelProperty("最后登录时间")
    private Date loginDate;


}
